//
//  NSObjectCategory.h
//  ubixar-utils
//
//  Created by Demis Bellot on 17/04/2009.
//  Copyright 2009 __MyCompanyName__. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSObject (NSObjectCategory)

// NOTE: results array contains instance of NSNull where result of performing selector is nil
// a collection here is anything responding to -objectEnumerator
- (void)performSelector:(SEL)aSelector withEachObjectFrom:(id)collection;
- (NSArray *)resultsOfPerformingSelector:(SEL)aSelector withEachObjectFrom:(id)collection;

- (void)log; //A very commonly used method–make it part of your default application project in PB or XC

- (id)arrayByAddingObject:(id)anObject; // a convenience for those of us who like to avoid special cases for collections

@end